<?php

namespace App\Models;

use App\Common\Constant\Params;
use Illuminate\Database\Eloquent\Model;

class Message extends BaseModel
{
    protected $table = 'message';

    const CREATED_AT = 'create_time';
    const UPDATED_AT = null;

    protected $dateFormat = 'U';

    protected $fillable = [
        'me_id',
        'title',
        'content',
        'status',
        'read_time',
    ];

    protected $casts = [
        'read_time'=>'datetime',
    ];

}
